// sin_sum4.js
import { calculateSinForSingleNumber } from './build/sin_sum4.js';

async function run() {


  // 准备要传递的数据
  const numbers = new Array(1000).fill(0).map((_, index) => index + 1);

  // 计算正弦值之和
  let sum = 0.0;
  for (let i = 0; i < numbers.length; i++) {
    const number = numbers[i];
    const sinValue = calculateSinForSingleNumber(number);
    sum += sinValue;
  }

  // 打印结果
  console.log(sum);
}

run();